package ys.com.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import ys.com.config.AppConfig;

import javax.naming.Name;

@RestController
@RequestMapping("/task")
public class TaskController {

    @Autowired AppConfig appConfig;

    @RequestMapping(value = {"/",""})
    public String hellTask(){
        String profiles = appConfig.getProfiles();
        return "hello task !!" + profiles;
    }

}